package com.xur.springboot.mapper;

import com.xur.springboot.entity.User;
import com.xur.springboot.entity.internship;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface internshipMapper {

    //查询所有职位信息
    List<internship> queryAllInternship();

    /*根据备注：实习、兼职、全职查询职业信息*/
    List<internship> queryBossInfoByRemark(String remark);

    //根据id查询所有职位信息
    List<internship> queryBossInfoById(int id);

    // 插入职位招聘信息
    int insertInternship(internship internship);

    //根据多个 user_detail_id 查询职位信息
    List<internship> queryByUserDetailIds(@Param("ids") List<Integer> ids);

}
